/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package models;

import java.io.Serializable;

/**
 *
 * @author simone
 */
public class TripDTO implements Serializable{
    
    
    private String name;
    private int idTrip;
    private Object cost;
    private cittaDTO CittaDep;
    private cittaDTO CittaArr;
    private TravelWayDTO tWay;
    
    
    public TripDTO(){
        
    }
    public TripDTO(String name,int id){
        this.name = name;
        this.idTrip = id;
        
    }

    public TravelWayDTO gettWay() {
        return tWay;
    }

    public void settWay(TravelWayDTO tWay) {
        this.tWay = tWay;
    }

    public Object getCost() {
        return cost;
    }

    public void setCost(Object cost) {
        this.cost = cost;
    }

    public cittaDTO getCittaDep() {
        return CittaDep;
    }

    public void setCittaDep(cittaDTO idCittaDep) {
        this.CittaDep = idCittaDep;
    }

    public cittaDTO getCittaArr() {
        return CittaArr;
    }

    public void setCittaArr(cittaDTO idCittaArr) {
        this.CittaArr = idCittaArr;
    }

    
    public String getName() {
        //String info = 
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIdTrip() {
        return idTrip;
    }

    public void setIdTrip(int idTrip) {
        this.idTrip = idTrip;
    }
    
    
    public String getInfo()
    {
        String info = this.tWay.getNameWay()+": "+this.CittaArr.getCityName()+" -- "+this.CittaDep.getCityName();
        return info;
    }
    
    
    
    
    
}
